# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=tilix
pkgver=1.9.5
pkgrel=1
pkgdesc="Tiling terminal emulator for Linux"
url="https://gnunn1.github.io/tilix-web/"
arch="x86_64 aarch64"
license="MPL-2.0"
depends="gsettings-desktop-schemas libsecret dbus:org.freedesktop.Secrets vte3"
makedepends="
	appstream
	dconf-dev
	desktop-file-utils
	gdk-pixbuf
	glib-dev
	gtkd-dev
	ldc
	libsecret-dev
	libx11-dev
	meson
	po4a
	"
options="!check" # no tests
subpackages="$pkgname-doc $pkgname-lang"
source="
	https://github.com/gnunn1/tilix/archive/$pkgver/tilix-$pkgver.tar.gz
	musl-hacks.patch
	dont-use-libunwind.patch
	"

export LDFLAGS="-L--no-export-dynamic"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c44872f68f27f4001e145da7a18109131fb681f3c73118d3c89a7a4ffe3279d7fed6d1304bdc090a4ea21e70bbe6ec3ad2c1da8f5b2f3be94ba6fbf0431fc404  tilix-1.9.5.tar.gz
3347bfebb0e4d011d9b17f31ed15ec79e503de76185757165c7c13daa6e8b566eb0ad3a7cf32775ee4bc6102da1fa593d3dd0ff57767748c911ec46ad53d4bc3  musl-hacks.patch
4a1ccc6011d64b78a7f2a93ca91eec36004c5e5d4e826efc115f860c3013bd52477324b586340e18849bce445c56d7d8b909393694ec43a3b11d0c85e6ad59c3  dont-use-libunwind.patch
"
